<%-- 
    Document   : gastarsaldo
    Created on : 8/05/2013, 12:16:17 PM
    Author     : Ari Mendez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="principal" scope="application" class="practica3.Principal"/>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Gastar Saldo</title>
    </head>
    <body>
        <form method="post" action="ejecutargastar.jsp">
            Id:<select id="id" name ="id">
                <%
                    String[] ids = principal.lista_tarjetas.getTodosLosIds();
                    int tam = ids.length;
                    for(int i=0;i<tam;i++){
                        out.println("<option value =\""+ids[i]+"\">"+ids[i]+"</option>");
                    }
                %>
            </select>
            <br>
            <input type="submit" value="Gastar"/>
        </form>
    </body>
</html>
